<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Timynce</title>
    <script src="tinymce.min.js"></script>
    <style>
        body{
            padding: 0;
            margin: 0;
        }
        textarea{
            width: 100%;
            height: 100%;
        }
       .tox.tox-tinymce{
            border: none;
            border-radius: 0;
            border: 1px solid #ced4da;
            border-radius: 0.25rem;
         }

        
    </style>

    <script>
    tinymce.init({
        selector: '#tinymceTextarea',
        height: 300,
        menubar:false,
        init_instance_callback:(editor)=>{
            editor.on("change", (e) => {
                //this.$emit("input", e.level.content);
                console.log( e.level.content);
            });

            editor.on("input", (e) => {
                console.log(e.target.innerHTML);
            })
        }
    });
 
    </script>
</head>
<body>
    <textarea id="tinymceTextarea">Hello, World!</textarea>
</body>
</html>